projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
599cc99
)
gsk: Add missing Mozilla copyright header
author
Benjamin Otte
<otte@redhat.com>
Mon, 26 Dec 2016 16:06:10 +0000
(17:06 +0100)
committer
Benjamin Otte
<otte@redhat.com>
Mon, 26 Dec 2016 16:22:01 +0000
(17:22 +0100)
I stole one of their shader functions, and if I steal, I might as well
do it right.
gsk/resources/vulkan/color-clip-rounded.frag.glsl
patch
|
blob
|
history
diff --git
a/gsk/resources/vulkan/color-clip-rounded.frag.glsl
b/gsk/resources/vulkan/color-clip-rounded.frag.glsl
index 9825f7858d0171f9c19036ef16d89daf90d59336..515a9989e78b91a238a10e44dffa362639557c4e 100644
(file)
--- a/
gsk/resources/vulkan/color-clip-rounded.frag.glsl
+++ b/
gsk/resources/vulkan/color-clip-rounded.frag.glsl
@@
-12,6
+12,11
@@
struct RoundedRect {
vec4 corners;
};
+
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
float clip(vec2 pos, RoundedRect r) {
vec2 ref_tl = r.bounds.xy + vec2( r.corners.x, r.corners.x);
vec2 ref_tr = r.bounds.zy + vec2(-r.corners.y, r.corners.y);